public class testPrint {
    public static void main(String[] args) {
        //学校
        OrganizationComponent university = new University("清华大学", "中国第一学府");

        //学院
       OrganizationComponent xintong = new College("信通学院", "信息通信工程学院");
       OrganizationComponent yishu =new College("艺术学院","艺术学院");
       OrganizationComponent jinmao =new College("经贸学院","经贸学院");

        //专业
        OrganizationComponent xintong1 = new Department("计算机科学与技术", "掉头发专业");
        OrganizationComponent xintong2 = new Department("通信工程","拉网线专业");
        OrganizationComponent xintong3= new Department("电子商务","淘宝");

        university.add(xintong);
        university.add(yishu);
        university.add(jinmao);

        xintong.add(xintong1);
        xintong.add(xintong2);
        xintong.add(xintong3);

        university.print();
        System.out.println("                                     ");
        xintong.print();


    }
}
